var web = web || {};
web.Slider = Class.create(); 
web.Slider.prototype = {
	initialize: function(div, options) {
		var _this = this;
		this.settings = $.extend({
			isFixWith: true,
			hasImg: true
		}, options);
		
		this.slider = div;
		this.view = div.children('s_box').children('.s_wrapper');
		this.ul = this.view.children('ul');
		this.lis =  this.ul.children('li');
		this.firstLi = this.ul.children('li:first');
		// http://www.1kjs.com/lib/widget/slides/
	},
	_init: function() {
		
	},
	_setWidth: function(){
		var _this = this;
		var width = 0;
		if (this.settings.isFixWith) {
			width = this.firstLi.outerWidth(true) * this.lis.size();
		} else {
			this.lis.each(function(i){
				width += $(this).outerWidth(true);
			});
		}
		this.ul.css({width: width +'px'});
	}
};

;(function($) {
	$.fn.slider = function(options) {
		return this.each(function(){
			new web.Slider($(this), options);
		});
	}
})(jQuery);